/*
 * @Author: yangzonglong
 * @Date: 2021-03-03 14:44:59
 * @version: v1.0.0
 * @Descripttion: Switch 控制器
 * @LastEditors: yangzonglong
 * @LastEditTime: 2021-06-09 10:49:47
 * @Auditor: 
 */
import React from 'react';
import FormItemController from './../components/FormItemController';
import useControlOptions from '../../hooks/useControlOptions';
import { SwitchProps } from './Switch';

const Controller = () => {

  const { options, changeFormItemProps } = useControlOptions<SwitchProps>('switchProps');

  return (
    <>
      <FormItemController hidePlaceholder onChange={changeFormItemProps} options={options?.formItemProps} />
    </>
  );
};

export default Controller;